﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Dapper_Core.BLL.Impl;
using Microsoft.AspNetCore.Mvc;

namespace Dapper_Core.Web.Controllers
{
    public class ServiceExposeClassController : Controller
    {
        private WxpayService wxpayService;
        private PlayPianoService playPianoService;
        public ServiceExposeClassController(WxpayService wxpayService,PlayPianoService playPianoService)
        {
            this.wxpayService = wxpayService;
            this.playPianoService = playPianoService;
        }

        public IActionResult Index()
        {
            ViewData["wxpay"] = wxpayService.Pay();
            ViewData["playPiano"] = playPianoService.Play();
            return View();
        }
    }
}